package structure.adapte;

/**
 * @author dali
 * @date 2021-07-12 19:56
 * @Description
 */

public class Adapter2 implements IVoltage5V {
    Voltage220V v220;
    public Adapter2(Voltage220V v220) {
        this.v220 = v220;
    }
    @Override
    public void out5V() {
        if (v220 != null) {
            int act = v220.out220V()/44;
            System.out.println("输出"+act+"V电压");
        }
    }
}
